<?php
class thanhvienAdmin extends CI_Controller
{
	function danhsachtv()
	{
		$data = array(
			'page'=>'danhsachthanhvien',
			'dstv'=>$this->mthanhvien->danhsachthanhvien()
		);	
		$this->load->view('admin/templateadmin', $data);
	}
	
	function xoatv($masp)
	{
		$this->mthanhvien->xoathanhvien($username);
		redirect('admin/thanhvienadmin/danhsachtv');	
	}
	
	function thongtintv($username)
	{
		$data = array(
			'page'=>'thongtinthanhvien',
			'tttv'=>$this->mthanhvien->thongtinthanhvien($username)
		);
		$this->load->view('admin/templateadmin', $data);
	}
	

	

}

?>